package com.ctgu.server.service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 验证码
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    void create(String key, HttpServletResponse response) throws IOException;

    public boolean check(String key,String code);
//
//    void buildCacheKey(String captcha, String uuid);
}